package com.jx.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
public class ConsummerControl {
    public static final String URL = "http://paymentZK8004";

    @Resource
    private RestTemplate restTemplate;

    @GetMapping(value = "/consumer/getUID")
    public String getUrl(){
        String res = restTemplate.getForObject(URL+"/getUID", String.class);
        return res;
    }
}
